package com.ct.rbac.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ct.rbac.orm.SysRolesDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author Auto Generator
 * @since 2023-08-13
 */
public interface SysRolesMapper extends BaseMapper<SysRolesDO> {
    /**
     * 查询用户对应的角色列表
     * @param userId
     * @return
     */
    List<SysRolesDO> findRoles(@Param("userId")Long userId);
}
